// 1 - START DROPDOWN SLIDER SCRIPTS ------------------------------------------------------------------------

jQuery(document).ready(function () {
    jQuery(".showhide-account").click(function () {
        jQuery(".account-content").slideToggle("fast");
        jQuery(this).toggleClass("active");
        return false;
    });
});

jQuery(document).ready(function () {
    jQuery(".action-slider").click(function () {
        jQuery("#actions-box-slider").slideToggle("fast");
        jQuery(this).toggleClass("activated");
        return false;
    });
});

//  END ----------------------------- 1

// 2 - START LOGIN PAGE SHOW HIDE BETWEEN LOGIN AND FORGOT PASSWORD BOXES--------------------------------------

jQuery(document).ready(function () {
	jQuery(".forgot-pwd").click(function () {
	jQuery("#loginbox").hide();
	jQuery("#forgotbox").show();
	return false;
	});

});

jQuery(document).ready(function () {
	jQuery(".back-login").click(function () {
	jQuery("#loginbox").show();
	jQuery("#forgotbox").hide();
	return false;
	});
});

// END ----------------------------- 2



// 3 - MESSAGE BOX FADING SCRIPTS ---------------------------------------------------------------------

jQuery(document).ready(function() {
	jQuery(".close-yellow").click(function () {
		jQuery("#message-yellow").fadeOut("slow");
	});
	jQuery(".close-red").click(function () {
		jQuery("#message-red").fadeOut("slow");
	});
	jQuery(".close-blue").click(function () {
		jQuery("#message-blue").fadeOut("slow");
	});
	jQuery(".close-green").click(function () {
		jQuery("#message-green").fadeOut("slow");
	});
});

// END ----------------------------- 3



// 4 - CLOSE OPEN SLIDERS BY CLICKING ELSEWHERE ON PAGE -------------------------------------------------------------------------

jQuery(document).bind("click", function (e) {
    if (e.target.id != jQuery(".showhide-account").attr("class")) jQuery(".account-content").slideUp();
});

jQuery(document).bind("click", function (e) {
    if (e.target.id != jQuery(".action-slider").attr("class")) jQuery("#actions-box-slider").slideUp();
});
// END ----------------------------- 4
 
 
 
// 5 - TABLE ROW BACKGROUND COLOR CHANGES ON ROLLOVER -----------------------------------------------------------------------
/*
$(document).ready(function () {
    $('#product-table	tr').hover(function () {
        $(this).addClass('activity-blue');
    },
    function () {
        $(this).removeClass('activity-blue');
    });
});
 */
// END -----------------------------  5
 
 
 
 // 6 - DYNAMIC YEAR STAMP FOR FOOTER -----------------------------------------------------------------------

 jQuery('#spanYear').html(new Date().getFullYear()); 
 
// END -----------------------------  6 
  
